<?php
	class configs
	{
		const ACTIVEMAIL_SERVICE_TITLE 			= 'Politician Ranking';
		const ACTIVEMAIL_MEMBER_ACTIVE_PAGE		= 'http://dogking88.cafe24.com/politicians/api/memberActive.php';
		const ACTIVEMAIL_ADMIN_MAIL 			= 'hanjd1983@gmail.com';
		const ACTIVEMAIL_DO_NOT_REPLY_MAIL 		= 'do-not-reply@gmail.com';
		
		const DATABASE_HOST			= 'localhost';
		const DATABASE_USERNAME		= 'dogking88';
		const DATABASE_PASS			= 'qwer1357';
		const DATABASE_DBNAME		= 'dogking88';
		
		const TABLE_CATEGORY_REGION		= 'pr_cat_region';
		const TABLE_CATEGORY_EDUCATION	= 'pr_cat_edu';
		const TABLE_CATEGORY_MILITARY	= 'pr_cat_military';
		const TABLE_CATEGORY_PARTY		= 'pr_cat_party';
		const TABLE_CATEGORY_RANK		= 'pr_cat_rank';
		const TABLE_CATEGORY_DUTY		= 'pr_cat_duty';
		const TABLE_CATEGORY_COMPLETED	= 'pr_cat_completed';
		const TABLE_CATEGORY_BUSINESS	= 'pr_cat_business';
		const TABLE_CATEGORY_ACTION		= 'pr_cat_action';
		const TABLE_CATEGORY_STAT		= 'pr_cat_stat';
		const TABLE_CATEGORY_HISTORY	= 'pr_cat_history';
		const TABLE_CATEGORY_SNS		= 'pr_cat_sns';
		const TABLE_CATEGORY_VOTE		= 'pr_cat_vote';
		const TABLE_CATEGORY_REGIST_PF	= 'pr_cat_registPlatform';
		
		const TABLE_MEMBER			= 'pr_member';
		
		const TABLE_MODEL			= 'pr_model';
		const TABLE_MODELTHUMBS		= 'pr_modelThumbs';
		const TABLE_MODELPARTY		= 'pr_modelParty';
		const TABLE_MODELDUTY		= 'pr_modelDuty';
		const TABLE_MODELHISTORY	= 'pr_modelHistory';
		const TABLE_MODELELECTION	= 'pr_modelElection';
		const TABLE_MODELBUSINESS	= 'pr_modelBusiness';
		const TABLE_MODELSNS		= 'pr_modelSns';
		const TABLE_MODELTAGS		= 'pr_modelTags';
		
		const TABLE_BUSINESS		= 'pr_business';
		const TABLE_BUSINESSTHUMBS	= 'pr_businessThumbs';
		const TABLE_BUSINESSLINKS	= 'pr_businessLinks';
		const TABLE_BUSINESSTAGS	= 'pr_businessTags';
		
		const TABLE_MEMBERMODELSTAT			= 'pr_memberModelStat';
		const TABLE_MEMBERMODELFAVORITES	= 'pr_memberModelFavorites';
		const TABLE_MEMBERMODELCOMMENTS		= 'pr_memberModelComments';
		
		const TABLE_MEMBERBUSINESSFAVORITES	= 'pr_memberBusinessFavorites';		
		const TABLE_MEMBERBUSINESSCOMMENTS	= 'pr_memberBusinessComments';
		const TABLE_MEMBERBUSINESSVOTES		= 'pr_memberBusinessVotes';
		
		const TABLE_MODELSTATAVG			= 'pr_modelStatAVG';
		const TABLE_SERVERNOTICE			= 'pr_serverNotice';
		
		const TABLE_FREEBOARD				= 'pr_freeboard';
		const TABLE_FREEBOARDTHUMBS			= 'pr_freeboardThumbs';
		const TABLE_FREEBOARDCOMMENTS		= 'pr_freeboardComments';
				
		const AUTHOR_ADMIN			= 0;
		const AUTHOR_MANAGER		= 1;
		const AUTHOR_MEMBER			= 5;
		
		const STATUS_DISACTIVE		= 0;
		const STATUS_ACTIVE			= 1;
		const STATUS_BLOCK			= 9;
		
		const FILEUPLOAD_PATH			= '../upload/';		// DB 에 이값(PATH) 부분은 기록되지 않는다. 클라이언트 단위로 정의
		const FILEUPLOAD_MODELFOLDER 	= 'model/';
		const FILEUPLOAD_BUSINESSFOLDER = 'business/';
		const FILEUPLOAD_FREEBOARDFOLDER = 'freeboard/';
		
		const IMAGE_SERVER_PATH			= 'http://dogking88.cafe24.com/politicians/upload/';
		
		// 내부적으로 사용하는 상수
		const NULL_PARTY_CODE			= -1;	// 존재하지 않는 정당 코드. 이 값은 TABLE_CATEGORY_PARTY 에 존재하지 않는 CODE 값이어야함.
	}
?>